package P5.T02;

import javax.swing.*;
import java.awt.*;

public class JMyFrame extends JFrame {
    public JMyFrame() {
        this.setTitle("My Frame");
        setSize(400,400);
        setLocation(200,200);
        setVisible(true);
        setLayout(new FlowLayout(FlowLayout.LEFT,2,2));
        for (int i = 0; i < 5 ; i++) {
            add(new JButton("Button" + i));
        }
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
